﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="add-member.aspx.cs" Inherits="admin_members_add_member" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        function clearForm(oForm) {

            var elements = oForm.elements;

            oForm.reset();

            for (i = 0; i < elements.length; i++) {

                field_type = elements[i].type.toLowerCase();

                switch (field_type) {

                    case "text":
                    case "password":
                    case "textarea":
                    case "hidden":

                        elements[i].value = "";
                        break;

                    case "radio":
                    case "checkbox":
                        if (elements[i].checked) {
                            elements[i].checked = false;
                        }
                        break;

                    case "select-one":
                    case "select-multi":
                        elements[i].selectedIndex = -1;
                        break;

                    default:
                        break;
                }
            }
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" Runat="Server">
    <h1>New Members</h1>
    <div class="form-horizontal">
    <div class="control-group">
        <p class="alert alert-info"><asp:Label ID="msgLabel" runat="server"></asp:Label></p>
    </div>
    <div class="control-group">
        <label class="control-label" for="fnameBox">
            First Name</label>
        <div class="controls">
            <asp:TextBox ID="fnameBox" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="lnameBox">
            Last Name</label>
        <div class="controls">
            <asp:TextBox ID="lnameBox" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="emailBox">
            Email</label>
        <div class="controls">
            <asp:TextBox ID="emailBox" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="phoneBoc">
            Phone</label>
        <div class="controls">
            <asp:TextBox ID="phoneBox" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="studentBox">
            Student ID</label>
        <div class="controls">
            <asp:TextBox ID="studentBox" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="UniList">
            University</label>
        <div class="controls">
            <asp:DropDownList ID="uniList" runat="server" DataSourceID="SqlDataSource1" 
                DataTextField="UNIVERISTY_NAME" DataValueField="ID" AppendDataBoundItems="True">
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
                SelectCommand="SELECT * FROM [UNIVERSITIES]"></asp:SqlDataSource>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="sbjBox">
            Subject Area</label>
        <div class="controls">
            <asp:DropDownList ID="SubjectList" runat="server"  data-mini="true" >
               <asp:ListItem></asp:ListItem>
                <asp:ListItem>Accounting or Business</asp:ListItem>
                <asp:ListItem>Computer Sciences</asp:ListItem>
                <asp:ListItem>Creative art or design</asp:ListItem>
                <asp:ListItem>Economics or Finance</asp:ListItem>
                <asp:ListItem>Education</asp:ListItem>
                <asp:ListItem>Engineering or Technology</asp:ListItem>
                <asp:ListItem>Government, Politics, International Relations or International development</asp:ListItem>
                <asp:ListItem>Humanities (History, Philosophy and other Humanities)</asp:ListItem>
                <asp:ListItem>Languages</asp:ListItem>
                <asp:ListItem>Law</asp:ListItem>
                <asp:ListItem>Marketing or Management</asp:ListItem>
                <asp:ListItem>Medicine and Dentistry</asp:ListItem>
                <asp:ListItem>Science (Including Medicine, Pharmacy and other science courses)</asp:ListItem>
                <asp:ListItem>Social Sciences (Including Geography, Sociology and other social sciences)</asp:ListItem>
                <asp:ListItem>Other</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="yearBox">
            Year of Study</label>
        <div class="controls">
            <asp:DropDownList ID="yearList" runat="server"  data-mini="true" > 
                <asp:ListItem></asp:ListItem>
                <asp:ListItem>First</asp:ListItem>
                <asp:ListItem>Second</asp:ListItem>
                <asp:ListItem>Third</asp:ListItem>
                <asp:ListItem>Fourth</asp:ListItem>
                <asp:ListItem>Graduated</asp:ListItem>
                <asp:ListItem>Post Graduate</asp:ListItem>
                <asp:ListItem>Other</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="degreeBox">
            Degree Type</label>
        <div class="controls">
            <asp:DropDownList ID="DegreeList" runat="server" data-mini="true">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem>BA or BSc</asp:ListItem>
                <asp:ListItem>BEng or MEng</asp:ListItem>
                <asp:ListItem>MA or MSc</asp:ListItem>
                <asp:ListItem>MBA</asp:ListItem>
                <asp:ListItem>Mphil or PhD</asp:ListItem>
                <asp:ListItem>Other</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="carrerBox">
            Career Interest</label>
        <div class="controls">
            <asp:DropDownList ID="careerList" runat="server" data-mini="true">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem>Accountancy & Professional Services</asp:ListItem>
                <asp:ListItem>Banking & Finance </asp:ListItem>
                <asp:ListItem>Business & Entrepreneurship</asp:ListItem>
                <asp:ListItem>Creative & Fashion</asp:ListItem>
                <asp:ListItem>Management and Strategy Consultancy</asp:ListItem>
                <asp:ListItem>Education & Teaching</asp:ListItem>
                <asp:ListItem>Engineering & industrial companies</asp:ListItem>
                <asp:ListItem>International Development</asp:ListItem>
                <asp:ListItem>Law</asp:ListItem>
                <asp:ListItem>Media & Publishing</asp:ListItem>
                <asp:ListItem>Medicine & Pharmaceutical </asp:ListItem>
                <asp:ListItem>Oil & Gas</asp:ListItem>
                <asp:ListItem>Public Sector</asp:ListItem>
                <asp:ListItem>Retail</asp:ListItem>
                <asp:ListItem>Software technology, ICT & Telecoms</asp:ListItem>
                <asp:ListItem>Third Sector or Charities</asp:ListItem>
                <asp:ListItem>I'm not sure</asp:ListItem>
                <asp:ListItem>Others</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="genderList">
            Gender</label>
        <div class="controls">
            <asp:DropDownList ID="genderList" runat="server">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem>Male</asp:ListItem>
                <asp:ListItem>Female</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="ethnicityBox">
            Ethnicity</label>
        <div class="controls">
            <asp:DropDownList ID="ethnicityList" runat="server" data-mini="true">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem>Black African</asp:ListItem>
                <asp:ListItem>Black Caribbean</asp:ListItem>
                <asp:ListItem>Mixed</asp:ListItem>
                <asp:ListItem>White</asp:ListItem>
                <asp:ListItem>Asian or Asian British</asp:ListItem>
                <asp:ListItem>Latino</asp:ListItem>
                <asp:ListItem>Other</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <%--<div class="control-group">
        <label class="control-label" for="citizenList">
            UK Citizen</label>
        <div class="controls">
            <asp:DropDownList ID="citizenList" runat="server">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem Value="true">Yes</asp:ListItem>
                <asp:ListItem Value="false">No</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>--%>
    <div class="control-group">
        <label class="control-label" for="ageList">
            Age Group</label>
        <div class="controls">
            <asp:DropDownList ID="ageList" runat="server">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem>under 18</asp:ListItem>
                <asp:ListItem>18 - 21</asp:ListItem>
                <asp:ListItem>22 - 25</asp:ListItem>
                <asp:ListItem>over 25</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label" for="ageList">
            Has member paid?</label>
        <div class="controls">
            <asp:CheckBox ID="paidBox" runat="server" Text="" />
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <asp:Button ID="Button1" runat="server" Text="Add new" CssClass="btn" onclick="Button1_Click" />
            <input id="Reset1" type="reset" value="Clear" class="btn" />
        </div>
    </div>
    </div>
</asp:Content>

